public class demo63 {
    class Solution {
        public int subsetXORSum(int[] nums) {
            int sum = 0;
            for(int num : nums)
            {
                sum |= num;
            }
            return sum <<(nums.length-1);
        }
    }
}
